package org.yxing.palpalgps.utils;

import java.util.HashMap;
import java.util.Map;

import org.yxing.palpalgps.R;

public class ErrorMessage {
    private static final Map<Integer, Integer>messages = new HashMap<Integer, Integer>();
    
    static{
        messages.put(205,R.string.can_not_delete_avatar);
        messages.put(501, R.string.you_had_joined_this_group);
    };
    
    public static int getResId(int code) {
        int resId = 0;
        if (messages.containsKey(code)) {
            resId = messages.get(code);
        }
        
        return resId;
    }
}
